-
Notifications
You must be signed in to change notification settings - Fork 37
parse values with units in FunctionCallDefinition #388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
zeroXbrock
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, good first pass. I made a mistake in the original spec that requires some changes: FunctionCallDefinition.value actually does need to be Option<String> because the templater relies on strings to support placeholder injection. It's a tiny change on your end, but my mistake -- sorry bout that!
Once the changes I requested are addressed, the code will be ready to support values with units!
|
@zeroXbrock, Could you provide your feedback on the changes ? |
yep, reviewing today! 🫡 |
…ctionCallDefinitionStrict error (U256 -> String)
|
thanks @Parizval! I realized that I made yet another mistake -- |
Motivation
Issue: #387
Refactoring data type of Value of FunctionCallDefinition and FunctionCallDefinitionStrict to U256.
PR Checklist
cargo +nightly clippy --workspace --lib --examples --tests --benches --all-features --locked --fixcargo fmt --allCHANGELOG.mdin each affected crate